package at.prospect.manualcreator.controller;

import at.prospect.manualcreator.entity.Manual;
import at.prospect.manualcreator.session.ManualFacade;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

@ManagedBean(name = "manualController")
@ViewScoped
public class ManualController extends AbstractController<Manual> implements Serializable {

    @EJB
    private ManualFacade ejbFacade;

    public ManualController() {
        super(Manual.class);
    }

    @PostConstruct
    public void init() {
        super.setFacade(ejbFacade);
    }
}
